home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / mailers / harvey45.zip / CHKMSGS.DOC next >
Text File  |  1992-08-31  |  4KB  |  103 lines

  1. ---------------------------------------------------------------------------
  2.  CHKmsgs v1.00                                by Harvey Parisien 1:249/114
  3. ---------------------------------------------------------------------------
  4. This utility is a great assistant to any BUSY sysop or NEC / NC types.  The
  5. concept outlined below was suggested to me by Ian Silver.  This helps with
  6. the automation of bbs systems, and/or supplements Harvey the Robot quite 
  7. nicely.  Thanks Ian!!
  8.  
  9. This utility reads *.MSG files addressed to a specific non human, using a
  10. password and datafile name on the subject line.  The message body is then
  11. extracted and put into a textfile (the datafile name on the subject line).
  12. This file can be used in different ways.  One way is where you can use it in
  13. conjunction with the Robot.  This allows someone with the proper password
  14. to enter a netmail message that the Robot automatically bundles and mails to
  15. a predefined list.
  16.  
  17. IE... (batch file segment)
  18. chkmsgs chkmsgs.001
  19. if exist control1.txt H control1.h
  20.  
  21. Another way is where you simply check for a file created by chkmsgs and if it
  22. exists, key events in your main system batch file.
  23.  
  24. IE... (batch file segment)
  25. chkmsgs chkmsgs.002
  26. if exist control2.txt BOOT
  27.  
  28.  
  29. USE: CHKmsgs control_configfile
  30.  
  31. CHKmsgs needs a control file using the following format...
  32.  
  33. FROM (authorized senders name)
  34. password (to be on the subject line)
  35. netmail path (this is where your *.msg netmail files are)
  36.  
  37. Sample...
  38.  
  39. Steve Martin
  40. passmeitsok
  41. c:\max\msg\netmail\
  42.  
  43. CHKmsgs scans your netmail directory and checks for UNREAD messages written
  44. by the authorized FROM to AUTO HARVEY.  Then it checks the message.  The 
  45. message must be addressed to AUTO HARVEY. This was done for security, and so
  46. unless you have a user called auto harvey that reads that message, it will 
  47. stay UNREAD until processed by CHKmsgs.
  48.  
  49. If the subject line contains the authorized password followed by a filename
  50. (which can be a complete drive:\path\filename [no extension]), CHKmsgs will
  51. create the file containing the body of the encountered message for use by 
  52. HARVEY the robot, or other batch file processing.  You can check in your 
  53. batch file for the files existance, and run HARVEY the robot which can send 
  54. that message out to your predetermined list, or execute any other dos command.
  55.  
  56. Example...
  57.  
  58. Ian Silver sends a message to Harvey Parisien with a subject line as follows:
  59.  
  60. passmeitsok c:\test\dummy
  61.  
  62. Notice no extension on dummy.  Just incase of errors or abuse, I didn't want a
  63. possibility where any important files could be written over.  The file created
  64. will automatically get an extension of .HHH (a basically uncommon and useless
  65. extension).
  66.  
  67. In a batch file I run CHKmsgs
  68.  
  69. ...BATCH STUFF
  70.  
  71. CHKmsgs
  72. IF EXIST c:\test\dummy.HHH H DUMMY.DAT
  73. .. you may have several if exist statements here...
  74. IF EXIST c:\test\dummy.HHH DEL c:\test\dummy.HHH 
  75.  
  76. I left it up to you to delete the *.hhh files.  This way you can use them to
  77. trigger other services not related to mail.  You can also have a preset text 
  78. file which has to get sent out, and just not be using xxxxxxxx.HHH for that
  79. particular task.
  80.  
  81. YOU MUST DELETE THEM OR HARVEY THE ROBOT WILL KEEP SENDING MAIL OUT!
  82.  
  83. CHKmsgs will only deal with controlling messages which are unread.
  84.  
  85. CHKmsgs will mark the controlling message as read and not deal with it again.
  86.  
  87. If an EXTENSION is used on the subject line the message will be ignored also.
  88.  
  89. If the controlling message is used in an echomail area the message will be
  90. stripped of it's original tearline and origin line. In fact you can enter in
  91. the body of your text a carriage return and --- as the first three characters
  92. on any line, the rest of the message body will be ignored.
  93.  
  94. If *.msg files are not found CHKmsgs will exit safely.
  95.  
  96. To be recognized the message must be TO: AUTO HARVEY
  97. This was done for security, and so unless you have a user called auto harvey
  98. that reads that message, it will stay unread until processed by CHKmsgs.
  99.  
  100. -----------------------------------------------------------------------------
  101.  
  102. Use freely and enjoy.... HP
  103.